package com.shaobufan.museum.service;


import javax.mail.MessagingException;

public interface EmailService {

    /**
     * 发送邮件
     *
     * @param recipientEmail 接收者的邮箱
     * @param title          邮件标题
     * @param text           邮件内容
     * @return 操作码
     */
    Integer sendCommonEmail(String recipientEmail, String title, String text);

    Integer sendTemplateEmail(String recipientEmail, String title, String text) throws MessagingException;
}